{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "c:\\ProgramData\\anaconda3\\lib\\site-packages\\akshare\\__init__.py:2812: UserWarning: 为了支持更多特性，请将 Pandas 升级到 2.2.0 及以上版本！\n",
      "  warnings.warn(\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "f7d84c7c803e451697454bb9d1c1e08e",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "  0%|          | 0/50 [00:00<?, ?it/s]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "      序号 股票代码  股票简称   现价  涨跌幅   个股热度 个股热度排名  排名日期\n",
      "0        1   002808    ST恒久   1.61    2.55  1521625.0       1/5024  20230129\n",
      "1        2   002279  久其软件   5.20    4.42  1298340.0       2/5024  20230129\n",
      "2        3   002195  岩山科技   2.47    0.82  1127531.0       3/5024  20230129\n",
      "3        4   002401  中远海科  14.23    0.92  1107362.0       4/5024  20230129\n",
      "4        5   600536  中国软件  29.03    1.68   963784.5       5/5024  20230129\n",
      "...    ...      ...       ...    ...     ...        ...          ...       ...\n",
      "4930  4931   836263  中航泰达   3.93    3.97     1406.0    4931/5024  20230129\n",
      "4931  4932   837212  智新电子   6.83   -3.80     1401.5    4932/5024  20230129\n",
      "4932  4933   688067  爱威科技  13.83    2.07     1398.0    4933/5024  20230129\n",
      "4933  4934   832491    奥迪威  11.22    0.09     1398.0    4933/5024  20230129\n",
      "4934  4935   430047  诺思兰德  11.90    1.80     1397.0    4935/5024  20230129\n",
      "\n",
      "[4935 rows x 8 columns]\n"
     ]
    }
   ],
   "source": [
    "import akshare as ak\n",
    "import pandas as pd\n",
    "\n",
    "#======下面行解决DataFrame打印时表头与数据不对齐的问题。====\n",
    "pd.set_option('display.unicode.east_asian_width', True)\n",
    "\n",
    "# 获取股票热度排名数据\n",
    "stock_hot_rank_wc_df = ak.stock_hot_rank_wc(date=\"20230129\")\n",
    "\n",
    "# 打印结果\n",
    "print(stock_hot_rank_wc_df)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "base",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
